package com.example.admin.adapter;

import android.util.Log;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.admin.R;
import com.example.admin.SQLite.Complaint;
import com.example.admin.SQLite.LunTan;

public class ForumLunTanAdapter extends BaseQuickAdapter<LunTan, BaseViewHolder> {
    boolean boo = false;

    public void setBoo(boolean boo) {
        this.boo = boo;
    }

    public ForumLunTanAdapter() {
        super(R.layout.item_forum);
    }

    @Override
    protected void convert(BaseViewHolder helper, LunTan str) {
        Log.e("的大师傅但是", "convert: "+str.toString() );
        helper.setText(R.id.tvTitle, "[" + str.luntanType + "]");
        helper.setText(R.id.tvStatu, str.luntanTitle);
        helper.setGone(R.id.tvDelet,boo);
        helper.addOnClickListener(R.id.tvDelet);
    }

}